﻿using System;
using Xoohoo.Modules.CMS.Models;

namespace Xoohoo.Modules.CMS.Extensions
{
    public static class CategoryModeExtensions
    {
        public static string ToChinese(this CategoryMode mode)
        {
            string returnValue = String.Empty;
            switch (mode)
            {
                case CategoryMode.ArticleList: returnValue = "文章列表"; break;
                case CategoryMode.ImageList: returnValue = "图片列表"; break;
                case CategoryMode.UrlList: returnValue = "Url列表"; break;
                case CategoryMode.AloneArticle: returnValue = "单独文章"; break;
                case CategoryMode.TitleOnly: returnValue = "显示标题"; break;
                case CategoryMode.Url: returnValue = "Url跳转"; break;
            }
            return returnValue;
        }
    }
}
